/**
*Title:Debug JavaScript for Gadget
*Author: littlepower
*Function: Print special message in special 'div' element
*Parameter: (flag, msg, div_Id)
*/
function debugInfo(flag, msg, div_Id) {	
    if (flag) {
     debug_html = msg;
     // Write debug HTML to div
     this.document.getElementById(div_Id).innerHTML = debug_html;
    }
}